package org.theSeed.config;

import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.theSeed.fileContract.contract.UploadFileRecorder;
import org.theSeed.fileContractExt.contract.impl.UploadFileRedisRecorder;

@Configuration
public class CusFileConfig {

    @Bean
    public UploadFileRecorder uploadFileRecorder(@Autowired RedissonClient redissonClient){
        return new UploadFileRedisRecorder(redissonClient);
    }
}
